﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListCustomer.aspx.cs" Inherits="ZX.WebApp.Crm.Customer.ListCustomer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/reset-fonts-grids/reset-fonts-grids.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/menu/assets/skins/sam/menu.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link rel="stylesheet" type="text/css" href="../../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <link rel="stylesheet" type="text/css" href="../../Scripts/yui_2.9.0/build/fonts/fonts-min.css" />
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.json-2.2.js" type="text/javascript"></script>
    <script src="../../Scripts/Jquery.form.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../../Scripts/yui_2.9.0/build/paginator/paginator-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/resize/resize-min.js"></script>
    <script type="text/javascript" src="../../scripts/yui_2.9.0/build/event-delegate/event-delegate-min.js"></script>
    <style type="text/css"> 
        body
        {
            font:13px/1.231 arial,helvetica,clean,sans-serif;
            *font-size:small;
            *font:x-small; background: #eeeeee;
            text-align:center;
        }    
        a:link,a:visited{
            color:#1f376d;
        }
        a:hover{   color:#ff0000;
            text-decoration:underline;
        }  
        #fieldRight
        {
            height:99.5%;
        }
    </style>
    
</head>
<body class="yui-skin-sam">
    <form id="form1" runat="server">
    
    <div class="fieldForm" id="fieldForm">
        <div id="fieldLeft" style="height:100%;  overflow-x:auto; overflow-y:scroll;">
              
                <asp:TreeView ID="tvGsInfo" runat="server" ShowLines="True" ExpandDepth="2">
                </asp:TreeView>
           
        </div> <div id="fieldRight"> 
        <iframe src="ListPC.aspx?functionID=<%=fcid %>" width="100%"  height="100%" id="mainFrame" frameborder="0" name="mainFrame"></iframe>    
        </div>
    </div>
    
   
    </form>
</body>
<script language="javascript" type="text/javascript">
    var EmpData = "<%=ReturnNoData %>";

    (function () {
        var Dom = YAHOO.util.Dom,
        Event = YAHOO.util.Event;
        Event.onDOMReady(function () {
            var layout = new YAHOO.widget.Layout({
                units: [
                { position: 'center', scroll: true }]
            });
            if(EmpData=="0"){
                layout.on('render', function() {
                    var el = layout.getUnitByPosition('center').get('wrap');
                    var layout2 = new YAHOO.widget.Layout(el, {
                        parent: layout,
                        units: [
                            { position: 'center', header: '私海客户', body: 'fieldRight', gutter: '0 1 1 1' }       
                        ]
                    });
                    layout2.render();
                });              
            }else{
                layout.on('render', function() {
                    var el = layout.getUnitByPosition('center').get('wrap');
                    var layout2 = new YAHOO.widget.Layout(el, {
                        parent: layout,
                        units: [
                            { position: 'left', header: '用户列表', body: 'fieldLeft', gutter: '0 1 1 1',
                                width: 190, minWidth: 190, collapse: true, scroll: true, animate: true
                            },
                            { position: 'center', header: '私海客户', body: 'fieldRight', gutter: '0 1 1 1' }       
                        ]
                    });
                    layout2.render();
                });
            }
            layout.render();
        });
    })();
</script>
</html>
